import request from '../utils/request'

// 支付相关API接口

export const paymentApi = {
  // 获取支付记录列表
  getPaymentList: (params) => request.get('/payment/list', { params }),
  
  // 获取支付详情
  getPaymentDetail: (id) => request.get(`/payment/${id}`),
  
  // 对账操作
  reconcilePayment: (params) => request.post('/reconciliation/execute', params),
  
  // 获取对账记录
  getReconciliationList: (params) => request.get('/reconciliation/list', { params }),
  
  // 获取对账报表
  getReconciliationReport: (params) => request.get('/reconciliation/report', { params }),
  
  // 处理对账差异
  handleReconciliationDiff: (params) => request.post('/reconciliation/handle-diff', params),
  
  // 导出对账数据
  exportReconciliationData: (params) => request.get('/reconciliation/export', { params, responseType: 'blob' })
}

export default paymentApi